package com.itheima.twodimensionalarray;

public class Demo2TwoDimensionalArray {
    public static void main(String[] args) {
        int[] arr01 = {11,22,33};
        int[] arr02 = {44,55,66};
        int[] arr03 = {77,88,99,100};
        
        int[][] arr = new int[3][3]; //第二个3是用来限制默认自动创建的一维数组长度
        arr[0] = arr01;
        arr[1] = arr02;
        arr[2] = arr03;

        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                System.out.print(arr[i][j]+" ");
            }
            System.out.println();
        }
    }
}
